package com.hx.miniblog.util.constant;

/**
 * @author wenhao hu
 * @title: DatabaseConstant
 * @projectName miniBlog
 * @description: TODO
 * @date 2021/12/2915:12
 */
public class DatabaseConstant {
    /**
     * 基础类
     */
    private static class BaseEntity{
        public static final String ID = "ID";
        public static final String CREATE_BY = "CREATE_BY";
        public static final String CREATE_TIME = "CREATE_TIME";
        public static final String UPDATE_BY = "UPDATE_BY";
        public static final String UPDATE_DATE = "UPDATE_DATE";
    }

    /**
     * 用户类
     */
    public static class SysUserConstant extends BaseEntity{
        public static final String USER_NAME = "USER_NAME";
        public static final String USER_PASSWORD = "USER_PASSWORD";
        public static final String USER_AVATAR = "USER_AVATAR";
        public static final String USER_DESCRIPTION = "USER_DESCRIPTION";
        public static final String USER_GIT_ADDRESS = "USER_GIT_ADRESS";
        public static final String USER_WECHAT_QR_CODE = "USER_WECHAT_QR_CODE";
        public static final String USER_QQ_QR_CODE = "USER_QQ_QR_CODE";
    }

    /**
     * 博客标签关联
     */
    public static class SysTagsBlogConstant extends BaseEntity{
        public static final String BLOG_ID = "BLOG_ID";
        public static final String TAGS_ID = "TAGS_ID";
    }

    /**
     * 标签
     */
    public static class SysTagsConstant extends BaseEntity{
        public static final String TAGS_NAME = "TAGS_NAME";
    }

    /**
     * 角色
     */
    public static class SysRoleConstant extends BaseEntity{
        public static final String ROLE_TYPE = "ROLE_TYPE";
        public static final String USER_ID = "USER_ID";
    }

    /**
     * 消息相关
     */
    public static class SysMessageConstant extends BaseEntity{
        public static final String MESSAGE_TYPE = "MESSAGE_TYPE";
        public static final String MESSAGE_CONTENT = "MESSAGE_CONTENT";
        public static final String RECEIVE_USER_ID = "RECEIVE_USER_ID";
    }
    /**
     * 博客专栏关联
     */
    public static class SysGroupBlogConstant extends BaseEntity{
        public static final String BLOG_ID = "BLOG_ID";
        public static final String GROUP_ID = "GROUP_ID";
    }

    /**
     * 专栏
     */
    public static class SysGroupConstant extends BaseEntity{
        public static final String GROUP_TITLE = "GROUP_TITLE";
        public static final String GROUP_DESCRIPTION = "GROUP_DESCRIPTION";
    }

    /**
     * 评论
     */
    public static class SysCommentConstant extends BaseEntity{
        public static final String PARENT_ID = "PARENT_ID";
        public static final String CONTENT = "CONTENT";
        public static final String BLOG_ID = "BLOG_ID";
    }

    /**
     * 点赞
     */
    public static class SysClapConstant extends BaseEntity{
        public static final String BLOG_ID = "BLOG_ID";
    }

    /**
     * 收藏
     */
    public static class SysBlogStarConstant extends BaseEntity{
        public static final String BLOG_ID = "BLOG_ID";
        public static final String USER_ID = "USER_ID";
    }
    /**
     * 博客
     */
    public static class SysBlogConstant extends BaseEntity{
        public static final String BLOG_TITLE = "BLOG_TITLE";
        public static final String BLOG_MAIN_PIC = "BLOG_MAIN_PIC";
        public static final String BLOG_DESCRIPTION = "BLOG_DESCRIPTION";
        public static final String BLOG_CONTENT = "BLOG_CONTENT";
        public static final String BLOG_DELETED = "BLOG_DELETED";
        public static final String BLOG_WATCH = "BLOG_WATCH";
        public static final String BLOG_VISIBILITY = "BLOG_VISIBILITY";
    }
}
